package com.happyass.service;

import com.happyass.pojo.Staff;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

public interface StaffInfoService {
    //管理员登录
    HashMap<String,Object> login(Staff staff, HttpServletRequest request);

    //获取所有员工信息
    List<Staff> getStaffInfos();

    //获取个人信息
    Staff getStaffByStaffUserName(String staffUsername);

    boolean add(Staff staff);

    boolean update(Staff staff);

    boolean del(Integer StaffId);

    Staff findByStaffId(Integer staffId);

    List<Staff> staffRoles();

    Staff selectStaffRolesByStaffId(Integer staffId);


    Staff selectById(Integer staffId);


    boolean edit(String currentPassword, String newPassword);
}
